{% extends "base.html" %}
{% block title %} | Login {% endblock %}

{%block body %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
<table align=center>
<tr>
    <td class="textocomum">{{ form.username.label_tag }}</td>
    <td style="height:10px">{{ form.username }}</td>
</tr>
<tr>
    <td class="textocomum">{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<div align=center>
	<input type="submit" value="Login" />
	<input type="hidden" name="next" value="{{ next }}" />
</div>
</form>

{% endblock %}
